import Vue from 'vue';
import VueRouter from 'vue-router';
import HomeView from '../views/HomeView.vue';
import NotFound from '../Notfound.vue';

Vue.use(VueRouter);

let routes = [
  {
    path: '/',
    name: 'homeindex',
    redirect: '/ftpdm/testpage'
  },
  {
    path: '/ftpdm/testpage',
    name: 'testpage',
    component: HomeView,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '*',
    name: 'notfound',
    component: NotFound
  }
];

const router = new VueRouter({
  routes
});

export default router;
